const home = r => require.ensure([], () => r(require('@/components/home/index.vue')), 'home')
const homePage = r => require.ensure([], () => r(require('@/components/home/child/HomePage.vue')), 'home')
const testPage = r => require.ensure([], () => r(require('@/components/home/child/TestPage.vue')), 'home')

export default [
  {
    name: 'home',
    path: '/home',
    component: home,
    children: [
      {
        path: '/',   //二级的默认路由（此path指向上一级，即path:'/about'）
        name: 'homepage',
        component: homePage,
      },

      {
        name: 'testpage',
        path: '/testpage',
        component: testPage
      }
    ]
  }

]
